<template>
  <div class="employer-page">
    <GetBioJobNavbar />
    
    <div class="employer-container">
      <!-- Hero Section -->
      <div class="hero-section">
        <h1 class="hero-title">Hire Top Biopharma Talent with GetBioJob</h1>
        <p class="hero-description">
          Connect with verified biopharma professionals. Post your openings for free and reach top talent in the industry.
        </p>
        <el-button type="primary" size="large" class="cta-button">
          Submit Your Hiring Request for Free
        </el-button>
        <p class="contact-text">
          or contact us directly at <a href="mailto:contact@getbiojob.com">xx@xx.com</a>
        </p>
      </div>

      <!-- Form Section -->
      <div class="form-section">
        <h2 class="form-title">Post Your Hiring Request (Free Beta Program)</h2>
        <el-card class="form-card">
          <el-form :model="hiringForm" :rules="formRules" ref="hiringFormRef" label-width="160px">
            <el-form-item label="Company Name" prop="companyName">
              <el-input v-model="hiringForm.companyName" placeholder="Enter your company name"></el-input>
            </el-form-item>
            <el-form-item label="Company Website" prop="companyWebsite">
              <el-input v-model="hiringForm.companyWebsite" placeholder="https://yourcompany.com"></el-input>
            </el-form-item>
            <el-form-item label="Contact Person Name" prop="contactName">
              <el-input v-model="hiringForm.contactName" placeholder="Enter contact person's name"></el-input>
            </el-form-item>
            <el-form-item label="Email Address" prop="email">
              <el-input v-model="hiringForm.email" placeholder="contact@yourcompany.com"></el-input>
            </el-form-item>
            <el-form-item label="Job Title(s) or Hiring Needs" prop="jobTitles">
              <el-input
                v-model="hiringForm.jobTitles"
                type="textarea"
                :rows="4"
                placeholder="Describe the positions you're looking to fill..."
              ></el-input>
            </el-form-item>
            <el-form-item label="Location" prop="location">
              <el-input v-model="hiringForm.location" placeholder="e.g., San Francisco, CA or Remote"></el-input>
            </el-form-item>
            <el-form-item label="Additional Comments" prop="comments">
              <el-input
                v-model="hiringForm.comments"
                type="textarea"
                :rows="4"
                placeholder="Any additional information or requirements..."
              ></el-input>
            </el-form-item>
            <el-form-item>
              <el-checkbox v-model="hiringForm.confirmed">I confirm this information is accurate.</el-checkbox>
            </el-form-item>
            <el-form-item>
              <el-button type="primary" size="large" @click="submitForm">Submit Request</el-button>
            </el-form-item>
          </el-form>
        </el-card>
      </div>
    </div>

    <GetBioJobFooter />
  </div>
</template>

<script>
export default {
  name: 'ForEmployerPage',
  data() {
    return {
      hiringForm: {
        companyName: '',
        companyWebsite: '',
        contactName: '',
        email: '',
        jobTitles: '',
        location: '',
        comments: '',
        confirmed: false
      },
      formRules: {
        companyName: [
          { required: true, message: 'Please enter company name', trigger: 'blur' }
        ],
        email: [
          { required: true, message: 'Please enter email address', trigger: 'blur' },
          { type: 'email', message: 'Please enter a valid email', trigger: 'blur' }
        ]
      }
    }
  },
  methods: {
    submitForm() {
      this.$refs.hiringFormRef.validate((valid) => {
        if (valid) {
          this.$message.success('Your hiring request has been submitted successfully!')
          // Reset form
          this.$refs.hiringFormRef.resetFields()
        }
      })
    }
  }
}
</script>

<style scoped>
.employer-page {
  min-height: 100vh;
  background-color: #fff;
}

.employer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px;
}

.hero-section {
  text-align: center;
  margin-bottom: 60px;
}

.hero-title {
  font-size: 36px;
  font-weight: bold;
  color: #000;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  color: #666;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  margin-bottom: 16px;
}

.contact-text {
  font-size: 14px;
  color: #999;
}

.contact-text a {
  color: #409eff;
  text-decoration: none;
}

.form-section {
  margin-top: 40px;
}

.form-title {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  margin-bottom: 24px;
}

.form-card {
  padding: 32px;
}

.form-card /deep/ .el-card__body {
  padding: 0;
}

@media screen and (max-width: 768px) {
  .hero-title {
    font-size: 28px;
  }
  
  .form-card {
    padding: 20px;
  }
}
</style>

